package com.feeyo.groundservice.checkin.constant

/**
 *作者：70893 on 2025-11-01
 *描述：列表值机人员排序 类型
 */
enum class CheckInSortType {

    CHECK_IN_TIME_ASC,
    CHECK_IN_TIME_DESC,
    DEFAULT
}


//值机员可点击按值机时长正序或倒序排序， 最后一次点击恢复默认排序
fun CheckInSortType.getNextSortType(): CheckInSortType {
    return when(this){
        CheckInSortType.DEFAULT-> CheckInSortType.CHECK_IN_TIME_ASC
        CheckInSortType.CHECK_IN_TIME_ASC-> CheckInSortType.CHECK_IN_TIME_DESC
        CheckInSortType.CHECK_IN_TIME_DESC-> CheckInSortType.DEFAULT
    }
}